//枚举
#include<stdio.h>
enum COLOR {REN,YELLOW,GREEN,NumCOLORS};
int main(int argc,char const *argv[]){
    int color =-1;
    char *colorNAME[NumCOLORS]={"red","yellow","green"};
    char *colorname="NULL";
    printf("请输入一个数字：");
    scanf("%d",&color);
    if(color>=0&&color<=NumCOLORS)
       colorname=colorNAME[color];
    else 
       colorname="unkown";
    printf("你今日的幸运色是%s\n",colorname);
    return 0;
}